﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>输入框组——改进版</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">

    <!--<link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />-->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <!--<div class="container">
        <div class="input-group-add">
        </div>

    </div>-->
    <div class="container">
        <div class="input-group-add">

        </div>

        <!--<div class="input-group">
            <span class="input-group-addon">&nbsp;4&nbsp;</span>
            <input class="form-control" type="text" name="data[]">
            <span class="input-group-btn">
                <button class="btn btn-default" type="button">
                    <span class="glyphicon glyphicon-plus">
                    </span>
                </button>
            </span>
        </div>-->

        <!--<div class="input-group m-b">
            <span class="input-group-addon">&nbsp;1&nbsp;</span>
            <div class="input-group-btn">
            <select data-placeholder="选择费用类型" class="form-control m-b" style="width:150px;">
                <option value="110000" hassubinfo="true" selected="selected">刷卡</option>
                <option value="120000" hassubinfo="true">现金</option>
                <option value="120000" hassubinfo="true">支票</option>
                <option value="120000" hassubinfo="true">汇款</option>
                <option value="120000" hassubinfo="true">支付宝</option>
                </select></div>
            <input class="form-control" type="text" name="data[]">
            <span class="input-group-btn">
                <button class="btn btn-default" type="button">
                    <span class="glyphicon glyphicon-minus"></span>
                </button>
            </span>
        </div>-->
    </div>
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/demo/inputGroup-1.1.js"></script>
    <script>
        $(function () {
            $('.input-group-add').initInputGroup({
                'widget': 'input', //输入框组中间的空间类型

                /*'add' : '添加',
                'del' : '删除'*/
                'field': 'data',
                'data': ['', '', '', '']
            });
        });
    </script>
</body>
</html>